
				function createMathRadom(count) {
					var array1 = [];
					for(var i = 0; i < count; i++) {
						array1.push(Math.random());
					}
					return array1;
				}
				var arr1 = createMathRadom(12);
				var arr2 = createMathRadom(12);
				var arr3 = createMathRadom(12);
				var arr4 = createMathRadom(12);
				//构建医院交易趋势分析柱状图
var yyjyqsOpt = {
					chart: {
						type: 'column'
					},
					legend: {
						align: 'right',
						verticalAlign: 'top',
						symbolHeight: 6,
						symbolWidth: 6,
						symbolRadius: 1,
						x: 0,
						y: -10,
						itemDistance:30,
						symbolPadding:10,
						itemStyle: {
							color: '#fff',
							fontSize: '13px',
							fontWeight:'normal',
						}
					},
					colors: ['#38AC55', '#4475FE', '#665EC9', '#DA8240', '#C24300', '#00CCD7'],
					xAxis: {
						categories: [
							'一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'
						],
						crosshair: true,
						lineColor: '#2C6EE4',
						lineWidth: 1,
						//tickPixelInterval: 150,
						labels: {
							style: {
								color: '#fff', //颜色
								fontSize: '14px' //字体
							}
						}
					},
					yAxis: {
						min: 0,
						lineColor: '#2C6EE4',
						lineWidth: 1,
						gridLineWidth: 0,
						labels: {
							style: {
								fontSize: '14px',
								color: '#fff'
							}
						},
						title: {
							text: '交易额（万）',
							align: 'high',
							offset: 0,
							rotation: 0,
							x: 10,
							y: -20,
							style: {
								fontSize: '15px',
								color: '#fff'
							},
						}
					},
					tooltip: {
						// head + 每个 point + footer 拼接成完整的 table
						headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
						pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
							'<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
						footerFormat: '</table>',
						shared: true,
						useHTML: true
					},
					plotOptions: {
						column: {
							borderWidth: 0,
							dataLabels: {
								// 开启数据标签
								enabled: true,
								//format: '{point.y:.2f}',
							formatter:function(point){
									return Math.ceil(this.point.y);
								},
								style: {
									color: '#fff',
									fontSize: '10px',
									fontWeight: 'normal',
									textOutline:"none"
								}
							}
						},
						
					},
					series: [{
						name: '微信',
						data: [88.9, 58.8, 79.3, 41.4, 38.6, 59.0, 59.6, 65.2, 59.3, 87.5, 59.3, 51.2]
					}, {
						name: '支付宝',
						data: [83.6, 78.8, 78.5, 63.4, 56.0, 84.5, 55.0, 58.3, 91.2, 83.5, 86.6, 92.3]
					}, {
						name: '银行卡',
						data: [48.9, 38.8, 39.3, 41.4, 47.0, 48.3, 59.0, 59.6, 52.4, 65.2, 59.3, 51.2]
					}, {
						name: '现金',
						data: [42.4, 33.2, 34.5, 39.7, 52.6, 75.5, 57.4, 60.4, 47.6, 39.1, 46.8, 51.1]
					}]
}
			
				
				
				

	



function loadyyjyqs(){
	$.ajax({
		url: "/mock/loadbar", 
		type: "POST",  
		success: function(dataz){
			console.log("loadyyjyqs",dataz.data.barChart);
			yyjyqsOpt.series=dataz.data.barChart;
			
			// $.each(arr1, function(i,val){      
			     // alert(i);   
			     // alert(val);
			//   yyjyqsOpt.series[i].data=val;
			// });   
			console.log("series",yyjyqsOpt.series);
			$("#yyjyqs-content").highcharts(yyjyqsOpt);
      }
	
	});
	
}